////
//// Source code recreated from a .class file by IntelliJ IDEA
//// (powered by Fernflower decompiler)
////
//
//package com.otherfile;
//
//import ma.glasnost.orika.MapperFacade;
//import ma.glasnost.orika.MapperFactory;
//import ma.glasnost.orika.impl.DefaultMapperFactory.Builder;
//import org.springframework.util.ObjectUtils;
//
//import java.util.Collections;
//import java.util.List;
//
//public class BeanMapper {
//    private static MapperFacade mapper = null;
//
//    public BeanMapper() {
//    }
//
//    public static <SOURCE, DESTINATION> DESTINATION map(SOURCE source, Class<DESTINATION> destinationClass) {
//        return ObjectUtils.isEmpty(source) ? null : map(mapper, source, destinationClass);
//    }
//
//    public static <SOURCE, DESTINATION> List<DESTINATION> mapList(Iterable<SOURCE> sourceList, Class<DESTINATION> destinationClass) {
//        return ObjectUtils.isEmpty(sourceList) ? Collections.emptyList() : mapList(mapper, sourceList, destinationClass);
//    }
//
//    public static <SOURCE, DESTINATION> DESTINATION map(MapperFacade mapper, SOURCE source, Class<DESTINATION> destinationClass) {
//        return ObjectUtils.isEmpty(source) ? null : mapper.map(source, destinationClass);
//    }
//
//    public static <SOURCE, DESTINATION> List<DESTINATION> mapList(MapperFacade mapper, Iterable<SOURCE> sourceList, Class<DESTINATION> destinationClass) {
//        return ObjectUtils.isEmpty(sourceList) ? Collections.emptyList() : mapper.mapAsList(sourceList, destinationClass);
//    }
//
//    static {
//        MapperFactory mapperFactory = (new Builder()).build();
//        mapper = mapperFactory.getMapperFacade();
//    }
//}
